#include <asm.h>
#include <regdef.h>
#include <inst_test.h>

LEAF(n31_xori_test)
    .set noreorder
    addiu s0, s0 ,1
    li  s2, 0x00
###test inst
    TEST_XORI(0x4406a500, 0x000014bf, 0x4406b1bf)
    TEST_XORI(0xb5f52460, 0x0000babe, 0xb5f59ede)
    TEST_XORI(0x34547fee, 0x00009cfa, 0x3454e314)
    TEST_XORI(0x4d7c6e70, 0x0000fdf4, 0x4d7c9384)
    TEST_XORI(0x0f04a9e8, 0x0000931e, 0x0f043af6)
    TEST_XORI(0xebec4441, 0x0000840b, 0xebecc04a)
    TEST_XORI(0x6634ae18, 0x00003388, 0x66349d90)
    TEST_XORI(0x91ab1a58, 0x0000ba27, 0x91aba07f)
    TEST_XORI(0x799c2469, 0x00003287, 0x799c16ee)
    TEST_XORI(0x33412a00, 0x000069cd, 0x334143cd)
    TEST_XORI(0x3e00f810, 0x00007da6, 0x3e0085b6)
    TEST_XORI(0x7a5a7b1e, 0x00005af4, 0x7a5a21ea)
    TEST_XORI(0x54f70200, 0x0000d4c2, 0x54f7d6c2)
    TEST_XORI(0xb076900d, 0x00000aec, 0xb0769ae1)
    TEST_XORI(0xefb34e75, 0x000030d0, 0xefb37ea5)
    TEST_XORI(0x8238b723, 0x00007da3, 0x8238ca80)
    TEST_XORI(0x8fd1c50e, 0x0000d513, 0x8fd1101d)
    TEST_XORI(0x527cfe40, 0x00006e4c, 0x527c900c)
    TEST_XORI(0xa7916af8, 0x00005e00, 0xa79134f8)
    TEST_XORI(0x2a7ef402, 0x00002ec9, 0x2a7edacb)
    TEST_XORI(0xeaa4370c, 0x0000cf7b, 0xeaa4f877)
    TEST_XORI(0x398d82c0, 0x00006f20, 0x398dede0)
    TEST_XORI(0xc17973c0, 0x0000a204, 0xc179d1c4)
    TEST_XORI(0x509b5930, 0x000016fb, 0x509b4fcb)
    TEST_XORI(0x02f1a8c0, 0x0000614a, 0x02f1c98a)
    TEST_XORI(0x9f1f1918, 0x00007180, 0x9f1f6898)
    TEST_XORI(0xa9995a23, 0x0000b6d0, 0xa999ecf3)
    TEST_XORI(0x790d38e8, 0x00008a4b, 0x790db2a3)
    TEST_XORI(0xe7b871a0, 0x0000bead, 0xe7b8cf0d)
    TEST_XORI(0x43c63446, 0x00007b20, 0x43c64f66)
    TEST_XORI(0x67ed4840, 0x0000fb4b, 0x67edb30b)
    TEST_XORI(0xd0399730, 0x00000932, 0xd0399e02)
    TEST_XORI(0xffce6838, 0x0000be7c, 0xffced644)
    TEST_XORI(0x218508a0, 0x0000bf06, 0x2185b7a6)
    TEST_XORI(0xd57ca985, 0x0000a028, 0xd57c09ad)
    TEST_XORI(0xb4dc272e, 0x00004cb8, 0xb4dc6b96)
    TEST_XORI(0x36d7bfad, 0x00003d1b, 0x36d782b6)
    TEST_XORI(0x50e364b4, 0x00003b80, 0x50e35f34)
    TEST_XORI(0xb4ddf452, 0x0000cdb8, 0xb4dd39ea)
    TEST_XORI(0xb8f61d50, 0x00008d00, 0xb8f69050)
    TEST_XORI(0x5e686f00, 0x00000809, 0x5e686709)
    TEST_XORI(0x9d185660, 0x0000ed22, 0x9d18bb42)
    TEST_XORI(0x87fe1678, 0x00003990, 0x87fe2fe8)
    TEST_XORI(0x1e5eeff6, 0x0000b77f, 0x1e5e5889)
    TEST_XORI(0xecf1b0c0, 0x0000d4b4, 0xecf16474)
    TEST_XORI(0x06f1fc80, 0x0000c78b, 0x06f13b0b)
    TEST_XORI(0x4bd38394, 0x0000d70a, 0x4bd3549e)
    TEST_XORI(0x6ccb50d0, 0x00002246, 0x6ccb7296)
    TEST_XORI(0x85699cc0, 0x00009aa0, 0x85690660)
    TEST_XORI(0xf02bf6f4, 0x0000a85c, 0xf02b5ea8)
    TEST_XORI(0xd9cf7ecc, 0x0000c5f8, 0xd9cfbb34)
    TEST_XORI(0x9fa2ec6c, 0x0000b808, 0x9fa25464)
    TEST_XORI(0xf40a7ab6, 0x0000ace5, 0xf40ad653)
    TEST_XORI(0x221f169c, 0x00004a05, 0x221f5c99)
    TEST_XORI(0x8bc94c7c, 0x0000deef, 0x8bc99293)
    TEST_XORI(0x9f1b301a, 0x000089ce, 0x9f1bb9d4)
    TEST_XORI(0xbae49c78, 0x0000efe7, 0xbae4739f)
    TEST_XORI(0x20c1bee2, 0x00001975, 0x20c1a797)
    TEST_XORI(0x8719f46e, 0x00007c5e, 0x87198830)
    TEST_XORI(0x8ee132b0, 0x00003013, 0x8ee102a3)
    TEST_XORI(0x4876e8e0, 0x00009895, 0x48767075)
    TEST_XORI(0xa13c076b, 0x0000b428, 0xa13cb343)
    TEST_XORI(0xeb47bdb0, 0x00005dac, 0xeb47e01c)
    TEST_XORI(0xa4d5085e, 0x00000ad8, 0xa4d50286)
    TEST_XORI(0x08c5015c, 0x0000403e, 0x08c54162)
    TEST_XORI(0xdc7f4352, 0x0000ab28, 0xdc7fe87a)
    TEST_XORI(0x1b2f16d0, 0x00008a30, 0x1b2f9ce0)
    TEST_XORI(0xbb07d7ee, 0x0000ac8c, 0xbb077b62)
    TEST_XORI(0x17ab5626, 0x00003bbc, 0x17ab6d9a)
    TEST_XORI(0xe2620f20, 0x000060d2, 0xe2626ff2)
    TEST_XORI(0xa755ccd8, 0x000096a1, 0xa7555a79)
    TEST_XORI(0xd8d49d01, 0x0000f310, 0xd8d46e11)
    TEST_XORI(0xfea7acb8, 0x00006c96, 0xfea7c02e)
    TEST_XORI(0xfe6d6cc0, 0x00002a44, 0xfe6d4684)
    TEST_XORI(0x0e8dbac0, 0x000058de, 0x0e8de21e)
    TEST_XORI(0xab400ea0, 0x0000c78a, 0xab40c92a)
    TEST_XORI(0x61736ae4, 0x000014c2, 0x61737e26)
    TEST_XORI(0x2c832410, 0x00000d4e, 0x2c83295e)
    TEST_XORI(0x1a39efe0, 0x0000e73c, 0x1a3908dc)
    TEST_XORI(0xc8793d1b, 0x00002c98, 0xc8791183)
    TEST_XORI(0xbfc7c7ce, 0x0000921a, 0xbfc755d4)
    TEST_XORI(0x7fde7f40, 0x0000fce7, 0x7fde83a7)
    TEST_XORI(0x1b069f4d, 0x0000fea8, 0x1b0661e5)
    TEST_XORI(0x54b73140, 0x00001b8a, 0x54b72aca)
    TEST_XORI(0x4430bfbe, 0x000067e3, 0x4430d85d)
    TEST_XORI(0x9ccd5ae2, 0x000007e0, 0x9ccd5d02)
    TEST_XORI(0x0682c23a, 0x00000bde, 0x0682c9e4)
    TEST_XORI(0x435111ec, 0x0000562d, 0x435147c1)
    TEST_XORI(0xc694f6f0, 0x0000d69c, 0xc694206c)
    TEST_XORI(0x25fe0d60, 0x00005a06, 0x25fe5766)
    TEST_XORI(0x340de130, 0x00004025, 0x340da115)
    TEST_XORI(0x27b0e95c, 0x000052c0, 0x27b0bb9c)
    TEST_XORI(0x1083e8f8, 0x0000429a, 0x1083aa62)
    TEST_XORI(0x6d9a63c8, 0x000085a0, 0x6d9ae668)
    TEST_XORI(0xe747d940, 0x0000688e, 0xe747b1ce)
    TEST_XORI(0x820ff0a0, 0x00001514, 0x820fe5b4)
    TEST_XORI(0xbd08a2d0, 0x0000c6aa, 0xbd08647a)
    TEST_XORI(0x951bbfac, 0x00008f9c, 0x951b3030)
    TEST_XORI(0xcb4a2fe5, 0x0000d2bd, 0xcb4afd58)
    TEST_XORI(0x4cac5398, 0x00005a7a, 0x4cac09e2)
    TEST_XORI(0x52d7c970, 0x000081c2, 0x52d748b2)
    TEST_XORI(0x48d5cb40, 0x00004800, 0x48d58340)
    TEST_XORI(0xb6277340, 0x00009855, 0xb627eb15)
    TEST_XORI(0x1c5a5198, 0x000068b3, 0x1c5a392b)
    TEST_XORI(0x3ec2c29c, 0x0000cc18, 0x3ec20e84)
    TEST_XORI(0x4f93d6e2, 0x000032b0, 0x4f93e452)
    TEST_XORI(0x35f7338b, 0x000006fc, 0x35f73577)
    TEST_XORI(0x7d96e6a0, 0x000089d4, 0x7d966f74)
    TEST_XORI(0x241f8e98, 0x00000f7a, 0x241f81e2)
    TEST_XORI(0x6448e8d0, 0x0000e78b, 0x64480f5b)
    TEST_XORI(0x8e72acb4, 0x000068e8, 0x8e72c45c)
    TEST_XORI(0x1675bfc8, 0x0000a6e3, 0x1675192b)
    TEST_XORI(0xb6c0b746, 0x00000aef, 0xb6c0bda9)
    TEST_XORI(0xd65d3a44, 0x00001116, 0xd65d2b52)
    TEST_XORI(0x6312b7e0, 0x00009ee0, 0x63122900)
    TEST_XORI(0x4d2d0e7c, 0x0000a9e6, 0x4d2da79a)
    TEST_XORI(0x69cc8da4, 0x00002045, 0x69ccade1)
    TEST_XORI(0x77c96582, 0x0000037c, 0x77c966fe)
    TEST_XORI(0x5d88d5c0, 0x0000b5a0, 0x5d886060)
    TEST_XORI(0x95191d82, 0x0000eba8, 0x9519f62a)
    TEST_XORI(0xa8e3fae0, 0x00001473, 0xa8e3ee93)
    TEST_XORI(0x4b890a92, 0x000037e6, 0x4b893d74)
    TEST_XORI(0x4f16942d, 0x0000caff, 0x4f165ed2)
    TEST_XORI(0x7651e248, 0x00006a30, 0x76518878)
    TEST_XORI(0xd5aae6f8, 0x00005e5a, 0xd5aab8a2)
    TEST_XORI(0x4c4ff410, 0x00000e00, 0x4c4ffa10)
    TEST_XORI(0x85a510c8, 0x0000bb58, 0x85a5ab90)
    TEST_XORI(0xbded2e10, 0x000019f0, 0xbded37e0)
    TEST_XORI(0x1b771d7c, 0x00007f09, 0x1b776275)
    TEST_XORI(0x61350040, 0x0000cb6d, 0x6135cb2d)
    TEST_XORI(0xd8b22e76, 0x00001227, 0xd8b23c51)
    TEST_XORI(0x1077f310, 0x00001bf8, 0x1077e8e8)
    TEST_XORI(0x40907e16, 0x0000bc7c, 0x4090c26a)
    TEST_XORI(0x018099e0, 0x0000bfaa, 0x0180264a)
    TEST_XORI(0xc929a3e2, 0x0000d14a, 0xc92972a8)
    TEST_XORI(0xb3234f60, 0x0000ffa5, 0xb323b0c5)
    TEST_XORI(0x4caf5120, 0x00001101, 0x4caf4021)
    TEST_XORI(0x3d9d7798, 0x0000e6a3, 0x3d9d913b)
    TEST_XORI(0x7b3bec00, 0x00000780, 0x7b3beb80)
    TEST_XORI(0x41b0e100, 0x0000899e, 0x41b0689e)
    TEST_XORI(0x2bfff038, 0x00003976, 0x2bffc94e)
    TEST_XORI(0x8e2c2c64, 0x00006794, 0x8e2c4bf0)
    TEST_XORI(0xb960d030, 0x0000c430, 0xb9601400)
    TEST_XORI(0x905340c0, 0x0000dd54, 0x90539d94)
    TEST_XORI(0x22c766b0, 0x00000a34, 0x22c76c84)
    TEST_XORI(0x13d45580, 0x0000df3c, 0x13d48abc)
    TEST_XORI(0xa8051560, 0x00008259, 0xa8059739)
    TEST_XORI(0x69aecf80, 0x00007da8, 0x69aeb228)
    TEST_XORI(0xbd803cf2, 0x00004d9c, 0xbd80716e)
    TEST_XORI(0x88a01000, 0x000063ea, 0x88a073ea)
    TEST_XORI(0x980f2f00, 0x0000359f, 0x980f1a9f)
    TEST_XORI(0x29bafada, 0x00009a22, 0x29ba60f8)
    TEST_XORI(0xb9b4e2c4, 0x00007469, 0xb9b496ad)
    TEST_XORI(0x5e330605, 0x00006b7e, 0x5e336d7b)
    TEST_XORI(0x3a980396, 0x0000ca83, 0x3a98c915)
    TEST_XORI(0xf6b2c980, 0x0000e21c, 0xf6b22b9c)
    TEST_XORI(0x7121a34c, 0x0000ac85, 0x71210fc9)
    TEST_XORI(0xed08d0e0, 0x00004ccc, 0xed089c2c)
    TEST_XORI(0x31a5f9bc, 0x0000de60, 0x31a527dc)
    TEST_XORI(0xa0410dd0, 0x00006ade, 0xa041670e)
    TEST_XORI(0xc82a429c, 0x00001d18, 0xc82a5f84)
    TEST_XORI(0xc38c82be, 0x0000b7ac, 0xc38c3512)
    TEST_XORI(0x3ac90f58, 0x00009e16, 0x3ac9914e)
    TEST_XORI(0xb49cc0b6, 0x00006ed0, 0xb49cae66)
    TEST_XORI(0x4e0a3b1f, 0x000005e1, 0x4e0a3efe)
    TEST_XORI(0xe38dbdc0, 0x0000a5b2, 0xe38d1872)
    TEST_XORI(0x03b5e51e, 0x0000e694, 0x03b5038a)
    TEST_XORI(0x011a0400, 0x00002c56, 0x011a2856)
    TEST_XORI(0xc8978c6c, 0x00007f00, 0xc897f36c)
    TEST_XORI(0x330d3704, 0x0000b5a3, 0x330d82a7)
    TEST_XORI(0xa1d13000, 0x0000726e, 0xa1d1426e)
    TEST_XORI(0xd2c33998, 0x00005cb4, 0xd2c3652c)
    TEST_XORI(0xefc6bfc8, 0x0000a79a, 0xefc61852)
    TEST_XORI(0xf0799810, 0x000036c1, 0xf079aed1)
    TEST_XORI(0x17286f40, 0x00008d52, 0x1728e212)
    TEST_XORI(0xaf9a3039, 0x0000e733, 0xaf9ad70a)
    TEST_XORI(0x1123ed00, 0x00005c80, 0x1123b180)
    TEST_XORI(0xb2291b00, 0x0000696e, 0xb229726e)
    TEST_XORI(0xea53a8fa, 0x000060b2, 0xea53c848)
    TEST_XORI(0x67cb64f5, 0x000095fc, 0x67cbf109)
    TEST_XORI(0x0037fc20, 0x00007e75, 0x00378255)
    TEST_XORI(0xb7e197c8, 0x000034d0, 0xb7e1a318)
    TEST_XORI(0xd994d5cd, 0x0000cfae, 0xd9941a63)
    TEST_XORI(0x2f4ebfd0, 0x0000d048, 0x2f4e6f98)
    TEST_XORI(0x8788a528, 0x00000738, 0x8788a210)
    TEST_XORI(0x3343c212, 0x0000bf74, 0x33437d66)
    TEST_XORI(0xc238ba00, 0x0000a2fb, 0xc23818fb)
    TEST_XORI(0x68db3cc5, 0x0000e6f0, 0x68dbda35)
    TEST_XORI(0xccc7d200, 0x0000e283, 0xccc73083)
    TEST_XORI(0x2bcfa162, 0x00001667, 0x2bcfb705)
    TEST_XORI(0x24582940, 0x00004fd4, 0x24586694)
    TEST_XORI(0xcbc280c0, 0x0000ff2c, 0xcbc27fec)
    TEST_XORI(0xd2f1abb0, 0x00000f35, 0xd2f1a485)
    TEST_XORI(0xe7291c4a, 0x0000b131, 0xe729ad7b)
    TEST_XORI(0x23c67bdd, 0x00006f10, 0x23c614cd)
    TEST_XORI(0x38c2e188, 0x0000e348, 0x38c202c0)
    TEST_XORI(0xd773f2db, 0x0000ff07, 0xd7730ddc)
    TEST_XORI(0x3ca1541a, 0x0000d182, 0x3ca18598)
    TEST_XORI(0x11ee01e0, 0x0000a0d8, 0x11eea138)
    TEST_XORI(0xbe8c6ea0, 0x00002f40, 0xbe8c41e0)
    TEST_XORI(0xfe2a5f18, 0x00000000, 0xfe2a5f18)
    TEST_XORI(0x5d8fecc0, 0x00000000, 0x5d8fecc0)
    TEST_XORI(0x629e18f4, 0x00000000, 0x629e18f4)
    TEST_XORI(0xbf9f9e88, 0x00000000, 0xbf9f9e88)
    TEST_XORI(0x80e13969, 0x00000000, 0x80e13969)
    TEST_XORI(0x188afd20, 0x00000000, 0x188afd20)
    TEST_XORI(0x66773ad0, 0x00000000, 0x66773ad0)
    TEST_XORI(0xbd002d78, 0x00000000, 0xbd002d78)
    TEST_XORI(0x2309efac, 0x00000000, 0x2309efac)
    TEST_XORI(0x214bb0c0, 0x00000000, 0x214bb0c0)
    TEST_XORI(0x70b66650, 0x00000000, 0x70b66650)
    TEST_XORI(0x961aaab8, 0x00000000, 0x961aaab8)
    TEST_XORI(0x347dd2a2, 0x00000000, 0x347dd2a2)
    TEST_XORI(0x6fe40f00, 0x00000000, 0x6fe40f00)
    TEST_XORI(0x89aac5c0, 0x00000000, 0x89aac5c0)
    TEST_XORI(0x6ee9a990, 0x00000000, 0x6ee9a990)
    TEST_XORI(0x636c2ebc, 0x00000000, 0x636c2ebc)
    TEST_XORI(0xff5dd5cc, 0x00000000, 0xff5dd5cc)
    TEST_XORI(0x34a6426e, 0x00000000, 0x34a6426e)
    TEST_XORI(0xccb46c87, 0x00000000, 0xccb46c87)
    TEST_XORI(0x0e0e4962, 0x00000000, 0x0e0e4962)
    TEST_XORI(0x85ecdb21, 0x00000000, 0x85ecdb21)
    TEST_XORI(0xbbe84760, 0x00000000, 0xbbe84760)
    TEST_XORI(0x19568250, 0x00000000, 0x19568250)
    TEST_XORI(0x0f69f5c4, 0x00000000, 0x0f69f5c4)
    TEST_XORI(0x9f14f1e1, 0x00000000, 0x9f14f1e1)
    TEST_XORI(0x4f22541c, 0x00000000, 0x4f22541c)
    TEST_XORI(0x79226200, 0x00000000, 0x79226200)
    TEST_XORI(0x47317d40, 0x00000000, 0x47317d40)
    TEST_XORI(0xf314cdd6, 0x00000000, 0xf314cdd6)
    TEST_XORI(0x49d156e0, 0x00000000, 0x49d156e0)
    TEST_XORI(0x474020d6, 0x00000000, 0x474020d6)
    TEST_XORI(0x3a80da50, 0x00000000, 0x3a80da50)
    TEST_XORI(0x5b24a2d7, 0x00000000, 0x5b24a2d7)
    TEST_XORI(0xc60e08d4, 0x00000000, 0xc60e08d4)
    TEST_XORI(0x8a93a68c, 0x00000000, 0x8a93a68c)
    TEST_XORI(0x98c589ba, 0x00000000, 0x98c589ba)
    TEST_XORI(0x14f4dc08, 0x00000000, 0x14f4dc08)
    TEST_XORI(0xdc9a0398, 0x00000000, 0xdc9a0398)
    TEST_XORI(0x57850870, 0x00000000, 0x57850870)
    TEST_XORI(0x9411ecad, 0x00000000, 0x9411ecad)
    TEST_XORI(0x918be1ef, 0x00000000, 0x918be1ef)
    TEST_XORI(0xb47cced9, 0x00000000, 0xb47cced9)
    TEST_XORI(0x4bbedad2, 0x00000000, 0x4bbedad2)
    TEST_XORI(0x0e54c7f0, 0x00000000, 0x0e54c7f0)
    TEST_XORI(0xebaf86d8, 0x00000000, 0xebaf86d8)
    TEST_XORI(0xe82fbf0e, 0x00000000, 0xe82fbf0e)
    TEST_XORI(0x1cb3f250, 0x00000000, 0x1cb3f250)
    TEST_XORI(0x75f99ed0, 0x00000000, 0x75f99ed0)
    TEST_XORI(0x95fb46f8, 0x00000000, 0x95fb46f8)
    TEST_XORI(0x00000000, 0x000029f4, 0x000029f4)
    TEST_XORI(0x00000000, 0x0000d098, 0x0000d098)
    TEST_XORI(0x00000000, 0x00007701, 0x00007701)
    TEST_XORI(0x00000000, 0x00002f1d, 0x00002f1d)
    TEST_XORI(0x00000000, 0x0000779e, 0x0000779e)
    TEST_XORI(0x00000000, 0x00002ec9, 0x00002ec9)
    TEST_XORI(0x00000000, 0x0000a0a4, 0x0000a0a4)
    TEST_XORI(0x00000000, 0x000066b6, 0x000066b6)
    TEST_XORI(0x00000000, 0x0000d5c4, 0x0000d5c4)
    TEST_XORI(0x00000000, 0x00007f41, 0x00007f41)
    TEST_XORI(0x00000000, 0x0000e5cc, 0x0000e5cc)
    TEST_XORI(0x00000000, 0x0000a94c, 0x0000a94c)
    TEST_XORI(0x00000000, 0x00007f06, 0x00007f06)
    TEST_XORI(0x00000000, 0x00007f84, 0x00007f84)
    TEST_XORI(0x00000000, 0x00004a4d, 0x00004a4d)
    TEST_XORI(0x00000000, 0x0000def8, 0x0000def8)
    TEST_XORI(0x00000000, 0x00003804, 0x00003804)
    TEST_XORI(0x00000000, 0x0000f9d0, 0x0000f9d0)
    TEST_XORI(0x00000000, 0x0000f394, 0x0000f394)
    TEST_XORI(0x00000000, 0x00008383, 0x00008383)
    TEST_XORI(0x00000000, 0x0000bec8, 0x0000bec8)
    TEST_XORI(0x00000000, 0x0000d9a8, 0x0000d9a8)
    TEST_XORI(0x00000000, 0x0000c10a, 0x0000c10a)
    TEST_XORI(0x00000000, 0x00009362, 0x00009362)
    TEST_XORI(0x00000000, 0x0000c5c6, 0x0000c5c6)
    TEST_XORI(0x00000000, 0x00001764, 0x00001764)
    TEST_XORI(0x00000000, 0x0000b690, 0x0000b690)
    TEST_XORI(0x00000000, 0x00007309, 0x00007309)
    TEST_XORI(0x00000000, 0x00001748, 0x00001748)
    TEST_XORI(0x00000000, 0x00005fa0, 0x00005fa0)
    TEST_XORI(0x00000000, 0x000007ec, 0x000007ec)
    TEST_XORI(0x00000000, 0x0000feaa, 0x0000feaa)
    TEST_XORI(0x00000000, 0x00001f26, 0x00001f26)
    TEST_XORI(0x00000000, 0x0000c9ad, 0x0000c9ad)
    TEST_XORI(0x00000000, 0x00009baf, 0x00009baf)
    TEST_XORI(0x00000000, 0x0000a726, 0x0000a726)
    TEST_XORI(0x00000000, 0x0000b432, 0x0000b432)
    TEST_XORI(0x00000000, 0x0000766e, 0x0000766e)
    TEST_XORI(0x00000000, 0x0000eff0, 0x0000eff0)
    TEST_XORI(0x00000000, 0x000004ce, 0x000004ce)
    TEST_XORI(0x00000000, 0x0000be24, 0x0000be24)
    TEST_XORI(0x00000000, 0x0000e1e1, 0x0000e1e1)
    TEST_XORI(0x00000000, 0x0000ed90, 0x0000ed90)
    TEST_XORI(0x00000000, 0x00008a2d, 0x00008a2d)
    TEST_XORI(0x00000000, 0x0000205c, 0x0000205c)
    TEST_XORI(0x00000000, 0x000022a8, 0x000022a8)
    TEST_XORI(0x00000000, 0x0000016d, 0x0000016d)
    TEST_XORI(0x00000000, 0x00001502, 0x00001502)
    TEST_XORI(0x00000000, 0x00004ac5, 0x00004ac5)
    TEST_XORI(0x00000000, 0x0000d918, 0x0000d918)
    TEST_XORI(0x00000000, 0x00000000, 0x00000000)
###detect exception
    bne s2, zero, inst_error
    nop
###score ++
    addiu s3, s3, 1
###output (s0<<24)|s3
inst_error:  
    sll t1, s0, 24
    or t0, t1, s3 
    sw t0, 0(s1)
    jr ra
    nop
END(n31_xori_test)
